<?php
/**
 * Yii view folders
 *
 * @author luubk
 * @since May 18, 2013 - 2:36:49 PM
 */
?>

<?php foreach ($files['contents'] as $f): ?>
    <?php if ($f['fType'] == 'folder'): ?>
        <?php if ($f['fName'] == '..') continue; ?>
        <ul id='<?php echo md5($f['fPath']); ?>'>
            <li>
                <a title="<?php echo $f['fName'] ?>" 
                   onclick="activeFolder($(this))"
                   data="<?php echo $f['fPath']; ?>"
                   class="folder_link">
                    <i class="icon icon-folder-close"></i>
                    <?php echo substr($f['fName'], 0, 10); ?>
                </a>
                <div class="folder_child"></div>
            </li>
        </ul>
    <?php endif; ?>
<?php endforeach; ?>